package com.xunlai.infra.permission.manager.web.vo.role;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @author liang
 * @date 12/11/22 6:40 PM
 */
@Data
public class CreateRoleReqVo implements Serializable {

    @NotNull(message = "角色名称不能为空",groups = {ValidRoleCreateGroup.class,ValidChangeRoleNameGroup.class})
    private String roleName;

    @NotNull(message = "角色编码不能为空",groups = {ValidRoleCreateGroup.class})
    private String roleCode;

    private Short type;

    @NotNull(message = "参数enable不能为空",groups = ValidSwitchRoleEnableGroup.class)
    private Short enable;


    public interface ValidRoleCreateGroup{

    }

    public interface ValidChangeRoleNameGroup{

    }

    public interface ValidSwitchRoleEnableGroup{

    }
}
